package com.meida.module.bus.provider.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Order(102)
@Configuration
public class SecurityIgnoreConfig extends WebSecurityConfigurerAdapter {


    @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers(
                "/error",
                "/2721967616.txt",
                "/static/**",
                "/v2/api-docs/**",
                "/v2/api-docs-ext/**",
                "/swagger-resources/**",
                "/webjars/**",
                "/favicon.ico",
                "/**/*.om",
                "/**/*.td");
    }
}
